package yf.mall.enums;

import lombok.Getter;

@Getter
public enum  MallOrderPayWayEnum {
    CASH(0,"代金券"),

    WX(1,"微信");


    int index;
    String value;

    MallOrderPayWayEnum(int index,String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return MallOrderPayWayEnum.values()[idx].getValue();
    }


}
